package oopbaseexercise;

import oopbaseexercise.Mouse;

public class Cat {

    private String alias;
    private int speed;

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public Cat(String alias, int speed) {
        this.alias = alias;
        this.speed = speed;
    }

    public boolean catchMouse(Mouse mouse) {
        if (this.getSpeed() > mouse.getSpeed()) {

            return true;
        }

        return false;
    }
}
